#include "factoryRect.h"

SDL_Rect * FactoryRect::crear(int x, int y, SDL_Surface * surface) {
	SDL_Rect * rect = (SDL_Rect *)malloc(sizeof(SDL_Rect));

	rect->x = x;
	rect->y = y;
	rect->h = surface->h;
	rect->w = surface->w;

	return rect;
}

